<?php
/**
 * modules | promociones | action | update | controller
 */
	$object->actualizar(NULL,"id={$id}");
	
	$object_cont = new DB("contenidoxpromocion");
	$object_cont->borrar("fk_id_promocion={$id}");
	foreach ($contenidoxpromocion as $cont) {
		$object_cont->establecer("fk_id_promocion",$id);
		$object_cont->establecer("tipo",$cont['tipo']);
		$object_cont->establecer("cantidad",$cont['cantidad']);
		$object_cont->establecer("fk_id_tipo",$cont['fk_id_tipo']);
		$object_cont->insertar();
	}
?>